
<body>
	<!-- theo dõi fanpage facebook -->
	<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1&appId=469806896469520";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- kết thúc -->


	<header>
		<div id="logo"><img src="<?php echo base_url(); ?>images/logo.jpg" width="170px" heigth="170px"></div>
		<div id="khung-phai-header">
			
		</div>
	<div id="slogan">KẾT NỐI YÊU THƯƠNG - ƯƠM MẦM MƠ ƯỚC</div>
	<div id="tamgiactrai"></div>
	<div id="tamgiacphai"></div>
	</header>
	<nav>
		<ul>
			<li><a href="<?php echo base_url() ?>">Trang chủ</a></li>
			<?php  foreach($query1 as $item1){ ?>
			<li><a href="#"><?php $flag=true; echo $item1->TenNCM ?></a>
				
					<?php if($flag){?>
				<ul>
					 <?php foreach($query2 as $item2) {
					 	if($item1->MaNCM==$item2->MaNCM)
					 	{
					 		
					 	?> 

					<li><a href="#"><?php echo $item2->TenCM ?></a></li>					
					
					<?php $flag=false; }  else $flag=true ; 
					 } ?> 
				</ul>
				<?php } ?>
			</li>
			<?php }?>
		</ul>
	</nav>
	
	
	
	
	
